import { _decorator, Component, Node, UITransform, Sprite, Animation, SpriteFrame, AnimationClip, animation } from 'cc'


import { SubStateMchine } from '../../Base/SubStateMchine'

import { DIRECTION, PLAYER_STATE_TYPE_ENUM, SPIKES_COUNT_MAP_NUMBER_ENUM } from '../../Enums'


export abstract class SpikesSubStateMachine extends SubStateMchine {
  run () {
    const value = this.fsm.getPramers(PLAYER_STATE_TYPE_ENUM.SPIKES_CUR_COUNT)
    this.currentState = this.stateMachines.get(SPIKES_COUNT_MAP_NUMBER_ENUM[value as number])
  }
}
